{"version":3,"sources":["script.js"],"names":["BXUrlPreview","element","this","inputElement","id","carouselElement","carouselImages","currentImageId","init","prototype","querySelector","initCarousel","bindEventHandlers","BX","type","isDomNode","form","addCustomEvent","ob","data","FORM","isNotEmptyString","name","attachUrlPreview","bind","detachUrlPreview","value","style","display","params","ufIdInput","ufId","getAttribute","requestParams","action","userFieldId","elementId","sessid","bitrix_sessid","hasOwnProperty","url","ajax","method","onsuccess","length","tempDiv","document","createElement","oldStyles","cssText","innerHTML","newElement","firstElementChild","parentNode","replaceChild","removeProperty","_this","detachElement","addEventListener","switchableElement","showEmbed","prevElement","nextElement","previousImage","nextImage","i","imageId","querySelectorAll","dataset","parseInt","setCarouselImage","imageUrl","imgElement","ufValue","map","imageElement","split","hasClass","addClass","removeClass","playerNode","findChildByClassName","getClass","player","Fileman","PlayerManager","getPlayerById","play","iframe","adjustFrameHeight","bindEmbedHandler","switchableElements","item","imageElements","onEmbeddedImageLoad","classList","remove","event","imageNode","currentTarget","onCustomEvent","window","counter","addToHeight","contentWindow","body","scrollHeight","height","videos","getElementsByTagName","iframes","setTimeout"],"mappings":"AAAA,IAAIA,aAAe,SAASC,GAE3BC,KAAKD,QAAUA,EACfC,KAAKC,aAAe,KACpBD,KAAKE,GAAKF,KAAKD,QAAQG,GACvBF,KAAKG,gBAAkB,KACvBH,KAAKI,kBACLJ,KAAKK,eAAiB,KACtBL,KAAKM,QAGNR,aAAaS,UAAUD,KAAO,WAE7BN,KAAKC,aAAeD,KAAKD,QAAQS,cAAc,wBAC/CR,KAAKS,eACLT,KAAKU,oBAEL,GACCC,GAAGC,KAAKC,UAAUb,KAAKC,eACpBD,KAAKC,aAAaa,KAEtB,CACCH,GAAGI,eAAef,KAAKC,aAAaa,KAAM,4BAA6B,SAASE,EAAIC,GACnF,GACCjB,KAAKC,aAAaa,MAAQE,EAAGE,MAC1BP,GAAGC,KAAKO,iBAAiBF,EAAKjB,KAAKC,aAAamB,OAEpD,CACCpB,KAAKqB,kBACJnB,GAA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